package com.ruoyi.common.domain.light;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.mybatisplus.QueryEnum;
import com.ruoyi.common.mybatisplus.QueryWr;
import com.ruoyi.common.typehandler.ListTypeHandler;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.apache.ibatis.type.JdbcType;

import java.io.Serializable;
import java.util.List;

/**
 * 安灯配置-异常推送表 lit_config_push
 *
 * @author ruoyi
 * @date 2022-02-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName(value = "lit_config_push", autoResultMap =true)
public class LitConfigPush extends BaseEntity implements Serializable {


    private static final long serialVersionUID = 1L;

    /**
     * Id
     */
    @TableId
    private Long pushId;
    /**
     * 推送流程名称
     */
    @QueryWr(type = QueryEnum.LIKE)
    private String pushName;
    /**
     * 处理难度1异常的角色组
     */
    @TableField(typeHandler = ListTypeHandler.class, jdbcType = JdbcType.VARCHAR)
    private List<Long> roleIdDiff1;
    @TableField(exist = false)
    private String roleNameDiff1;
    /**
     * 处理难度2异常的角色组
     */
    @TableField(typeHandler = ListTypeHandler.class, jdbcType = JdbcType.VARCHAR)
    private List<Long> roleIdDiff2;
    @TableField(exist = false)
    private String roleNameDiff2;

    /**
     * 处理难度3异常的角色组
     */
    @TableField(typeHandler = ListTypeHandler.class, jdbcType = JdbcType.VARCHAR)
    private List<Long> roleIdDiff3;
    @TableField(exist = false)
    private String roleNameDiff3;


    /**
     * 删除标志（0代表存在 1代表删除）
     */
    @TableLogic
    private Integer deleted;

    private String status;

    private Integer sort;

}